function display(product)
	{
		$("#result").empty();
		
		var newDiv = document.createElement("div");
		var newUl = document.createElement("ul");
		
		var itemName = document.createTextNode(product.itemName);
		console.log("item : "+itemName.value);
		var newLi = document.createElement("li");
		newLi.appendChild(itemName);
		newUl.appendChild(newLi);
		
		var a = document.createElement("a");
		a.setAttribute("href", product.url);
		
		var img = document.createElement("img");
		img.setAttribute("src", product.image);
		img.setAttribute("alt", product.itemName);
		img.setAttribute("class", "product");
		
		a.appendChild(img);
		
		newLi = document.createElement("li");
		newLi.appendChild(a);
		newUl.appendChild(newLi);
		/*var img = document.createTextNode(product.image);
		console.log("img : " + img);*/
		
		/*var url = document.createTextNode(product.url);
		console.log("url :" + url);
		newLi = document.createElement("li");
		newLi.appendChild(url);
		newUl.appendChild(newLi);*/
		
		var price = document.createTextNode(product.price);
		console.log("price : " + price);
		newLi = document.createElement("li");
		newLi.appendChild(price);
		newUl.appendChild(newLi);
		
		var dcratio = document.createTextNode(product.discountRatio + "%");
		console.log("dcratio : " + dcratio);
		newLi = document.createElement("li");
		newLi.appendChild(dcratio);
		newUl.appendChild(newLi);
		
		newDiv.appendChild(newUl);
		
		var area1 = document.getElementById("result");
		area1.appendChild(newDiv);
	}

function goHome()
{
	location.href="/";
}